from django.conf.urls import include, url
from chat.views import ChatViews
from django.conf.urls.static import static
from django.conf import settings
from django.views.static import serve

urlpatterns = [
    url(r'^media/(?P<path>.*)$', serve, settings.MEDIA_DICT),

    url(r'^s/$', ChatViews.chat),
    url(r'^s/([a-zA-Z0-9\-]+)/$', ChatViews.chat),
    url(r'^$', ChatViews.session),
    url(r'^message/$', ChatViews.message),
    url(r'^nickname/$', ChatViews.nickname),
    url(r'^session/$', ChatViews.session_create),
    url(r'^audio/$', ChatViews.audio),
    url(r'^export/$', ChatViews.export),
]
